package com.cjw.pojo.dto.livesquare;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

/**
 * @author : cjw
 * @date: : 2022/2/12 21:06
 * @description : 详细计划DTO
 */
@Data
@ToString
@ApiModel("详细计划DTO")
public class DetailPlanDTO {
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty("计划id")
    private Long id;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("开始时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date beginTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date endTime;

    @ApiModelProperty("每星期几")
    private String days;

    @ApiModelProperty("状态")
    private Integer state;

    @ApiModelProperty("发布时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date addTime;

    @ApiModelProperty("用户名称")
    private String userName;

    @ApiModelProperty("用户头像")
    private String userHeadImage;

    @ApiModelProperty("是否参与")
    private Integer join;

    @ApiModelProperty("参与人数")
    private Integer joinNumber;
}
